//mock需要使用commonjs语法
const Mock = require("mockjs");
const banners = require("./json/banners.json");
const floors = require("./json/floors.json");
//需要多个动态路径就得用多个mock函数
Mock.mock("/mock/banners",{
    code:200,
    ok:true,
    message:"success",
    data:banners
})
Mock.mock("/mock/floors",{
    code:200,
    ok:true,
    message:"success",
    data:floors
})